package edu.krazy.engine;
import java.io.Serializable;

public class Vertex3f implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private float x,y,z;
	private float avgNormal[];
	private float u,v;
    public Vertex3f(float vertice1, float vertice2, float vertice3) {
    	
    	x = vertice1;
    	y = vertice2;
    	z = vertice3;
    	avgNormal = new float[3];
    }
    
    public Vertex3f(float[] v)
    {
    	x= v[0];
    	y = v[1];
    	z = v[2];
    	avgNormal = new float[3];
    	
    }
    
    public Vertex3f(Vertex3f v)
    {
    	x = v.getX();
    	y = v.getY();
    	z = v.getZ();
    	avgNormal = new float[3];
    }
    public float getX(){
    	
    	return x;
    }
    public float getY(){
    	
    	return y;
    }
    
    public float getZ(){
    	
    	return z;
    }
    
    public void setX(float x1){
    	x = x1;
    }
    
    public void setY(float y1){
    	y = y1;
    }
    
    public void setZ(float z1){
    	z = z1;
    }
    public void setU(float U){
    	
    	u = U;
    }
    public void setV(float V){
    	
    	v = V;
    }
    
    public float getU(){
    	return u;
    }
    
    public float getV(){
    	
    	return v;
    }
    public void setAvgNormal(int i, int j, int k){
    	avgNormal[0] = i;
    	avgNormal[1] = j;
    	avgNormal[2] = k;
    }
}
